<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" import="java.util.*,com.stx.bean.*"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	//获取博文类型信息
	 List list=(List)request.getAttribute("cates");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>新增博文</title>
<link rel="stylesheet" type="text/css" href="<%=basePath%>/css/top.css" /> 
</head>
<body>
	<jsp:include page="top.jsp"></jsp:include>
	<form action="<%=basePath%>blogaddsel" method="post">
	<input name="id" type="hidden" />
	<input name="userid" type="hidden"/>
		<table id="add" width="1200">			
			<tr>
				<td class="right" width="300">
				  类型:
				  </td>
				  <td class="left">
				  <select name="cateid">
				  <%
				        for(int i=0;i<list.size();i++){
				        	Category cate=(Category)list.get(i);
				        	%>
				        	  <option value="<%=cate.getId() %>"><%=cate.getCateName() %></ option>
				        	<% 
				        }
				  
				  %>
				  </select>
				
				</td>
				
			</tr>  
			
			<tr>
				<td class="right">标题:</td>
				<td class="left"><input name="title" /></td>
			</tr>
			
			<tr>
			    <td class="right">内容:</td>
			    <td class="left"><textarea name="content" cols="50" rows="3"/></textarea></td>
			</tr>
			
			<tr>
				<td colspan="2"><input type="submit" /></td>
			</tr>
		</table>
	</form>
</body>
</html>